package com.example.service;

import com.example.pojo.entity.Order;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderService {
    void insert(Order order);

    void updateOrder(Order order);

    void removeById(Integer id);

    void removeBatchByIds(List<Integer> ids);

    List<Order> list();

    Order getById(Integer id);

    PageInfo<Order> selectByPage(Integer pageNum, Integer pageSize, String goodsName, Integer userId);

    Order getByOrderNum(String orderNum);
}
